package com.tyk.bookstore.back.system.model.vo;

import com.tyk.bookstore.back.common.core.model.page.PageVo;
import com.tyk.bookstore.back.system.model.type.RoleState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

public class RolePageVo extends PageVo<RolePageVo.Role> {
    @Data
    public static class Role {

        @Schema(description = "角色字符串")
        private String code;

        @Schema(description = "角色描述")
        private String description;

        @Schema(description = "角色ID")
        private String id;

        @Schema(description = "角色名称")
        private String name;

        @Schema(description = "角色状态：0可用，1禁用", type = "integer")
        private RoleState state;

        @Schema(description = "创建时间")
        private LocalDateTime createTime;

        @Schema(description = "更新时间")
        private LocalDateTime updateTime;

    }
}
